package com.stone.model;
// default package

public class ProviderStone  implements java.io.Serializable {

     /**
	 * 
	 */
	 private static final long serialVersionUID = 4478297061107338046L;
	 private Long id;
     private Stone stone;
     private Provider provider;
     private Float rawMaxprice;
     private Float rawMinprice;
     private Float slabMaxprice;
     private Float slabMinprice;
     private String quantity;
     private String quality;
     private Float weight;
    // Constructors
    // Property accessors

    public Stone getStone() {
        return this.stone;
    }
    
    public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}


	public void setStone(Stone stone) {
        this.stone = stone;
    }

    public Provider getProvider() {
        return this.provider;
    }
    
    public void setProvider(Provider provider) {
        this.provider = provider;
    }
    
	public Float getRawMaxprice() {
		return rawMaxprice;
	}

	public void setRawMaxprice(Float rawMaxprice) {
		this.rawMaxprice = rawMaxprice;
	}

	public Float getRawMinprice() {
		return rawMinprice;
	}

	public void setRawMinprice(Float rawMinprice) {
		this.rawMinprice = rawMinprice;
	}

	public Float getSlabMaxprice() {
		return slabMaxprice;
	}

	public void setSlabMaxprice(Float slabMaxprice) {
		this.slabMaxprice = slabMaxprice;
	}

	public Float getSlabMinprice() {
		return slabMinprice;
	}

	public void setSlabMinprice(Float slabMinprice) {
		this.slabMinprice = slabMinprice;
	}

	public String getQuantity() {
		return quantity;
	}

	public void setQuantity(String quantity) {
		this.quantity = quantity;
	}

	public String getQuality() {
		return quality;
	}

	public void setQuality(String quality) {
		this.quality = quality;
	}

	public Float getWeight() {
		return weight;
	}

	public void setWeight(Float weight) {
		this.weight = weight;
	}
	
	@Override
	public boolean equals(Object o) {
		if( o instanceof ProviderStone){
			ProviderStone ps = (ProviderStone) o;
			if(this.id.equals(ps.getId())){
				return true;
			}
		}else{ 
			return false;
		}
		return false;
	}
	
	@Override
	public int hashCode() {
		int base = 28;
		return base*5+getId().hashCode();
	}
    
}